<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular.js"></script>
    <title></title>
</head>
<body>
<div ng-app="app" ng-controller="MyController">
    <h5>{{ clock }}</h5>
</div>
<script>
    var app = angular.module('app',[]);
    app.controller('MyController', function ($scope) {
        $scope.person = {name: "Ari Lerner"};
        var updateClock = function () {
            $scope.clock = new Date();
        };
        var timer = setInterval(function () {
            $scope.$apply(updateClock);
        }, 1000);
        updateClock();
    });
</script>
</body>
</html>